Repository navigation
ci(routed-rust): add Ripr Rust Small routed result - #4
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (6)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Droid finished @EffortlessSteven's task —— View job Droid Review SummaryPR #4 - ci(routed-rust): add Ripr Rust Small routed result Assessment: 3 candidate comments validated and approved (1 P2, 2 P3) Findings:
No security vulnerabilities identified. |
f95c503 to
fb061a5
Compare
| reason=cx43_idle | ||
| elif printf '%s' "$runners" | jq -e '.runners[] | select(.status == "online" and (.busy | not) and ([.labels[].name | ascii_downcase] | (index("cx53") or index("cx43"))))' >/dev/null; then | ||
| reason=runner_image_unavailable | ||
| else | ||
| reason=no_idle_runner | ||
| fi |
There was a problem hiding this comment.
[P2] Runner enumeration hard-codes page limit
Line 57: gh api orgs/EffortlessMetrics/actions/runners --paginate 2 limits results to 2 pages (~300 runners at default 100/page). If CX53 or CX43 runners exist on page 3 or beyond, they are never checked, causing unnecessary GitHub-hosted fallback. The --paginate flag should be used without a numeric argument to fetch all runners, or a sufficiently large limit should be used.
| uses: actions/upload-artifact@v7 | ||
| with: | ||
| name: ripr-rust-small-cx53 | ||
| path: | |
There was a problem hiding this comment.
[P3] Duplicate command in Advisory reports step
Line 160: cargo xtask reports index is executed twice consecutively in the same step. This is redundant and wastes CI time. One of the two invocations should be removed.
| BASE_SHA: ${{ github.event.pull_request.base.sha }} | ||
| HEAD_SHA: ${{ github.event.pull_request.head.sha }} | ||
| GITHUB_PR_LABELS: ${{ join(github.event.pull_request.labels.*.name, ',') }} | ||
| RIPR_REVIEW_COMMENTS_TIMEOUT_SECS: "60" |
There was a problem hiding this comment.
[P3] Result job summary written before case validation
Lines 319-328: The step summary is written before the case statement that may exit with code 1. If the case statement fails (e.g., CX53_RESULT is not 'success'), the summary is already written but won't reflect the actual failure. This could confuse debugging.
|
Droid finished @EffortlessSteven's task —— View job Droid Review SummaryPR #4 - ci(routed-rust): add Ripr Rust Small routed result Assessment: 5 candidate comments validated and approved (1 P1, 3 P2, 1 P3) Findings:
Security findings identified. (P1 supply chain issue) |
| options: --cpus=14 --memory=28g -v /mnt/ci-scratch:/mnt/ci-scratch -v /mnt/ci-cache:/mnt/ci-cache -v /mnt/docker:/mnt/docker | ||
| env: | ||
| CARGO_BUILD_JOBS: "12" | ||
| CARGO_HOME: /mnt/ci-cache/cargo-home | ||
| SCCACHE_DIR: /mnt/ci-cache/sccache | ||
| CARGO_TARGET_DIR: /mnt/ci-scratch/target/${{ github.run_id }}-${{ github.run_attempt }} |
There was a problem hiding this comment.
[P1] [security] Container image em-ci-rust:1.95 not pinned to digest
The self-hosted runner jobs (CX53, CX43) pull the container image em-ci-rust:1.95 using a mutable tag. If this tag is reassigned to a malicious image, the workflow would pull the compromised image on subsequent runs. The image should be pinned by digest (e.g., em-ci-rust@sha256:<digest>) to guarantee integrity.
| BASE_SHA: ${{ github.event.pull_request.base.sha }} | ||
| HEAD_SHA: ${{ github.event.pull_request.head.sha }} | ||
| GITHUB_PR_LABELS: ${{ join(github.event.pull_request.labels.*.name, ',') }} |
There was a problem hiding this comment.
[P2] Duplicate command in Advisory reports step
The cargo xtask reports index command appears twice consecutively in the "Advisory reports" step (lines 140 and 142, also 234/236, 316/318). The second invocation is redundant and wastes CI time.
| reason=cx53_idle | ||
| elif printf '%s' "$runners" | jq -e '.runners[] | select(.status == "online" and (.busy | not) and ([.labels[].name | ascii_downcase] | index("cx43") and index("em-ci-rust-1.95")))' >/dev/null; then | ||
| target=cx43 | ||
| reason=cx43_idle |
There was a problem hiding this comment.
[P2] --paginate 2 limits runner enumeration to 2 pages
Line 52: gh api orgs/EffortlessMetrics/actions/runners --paginate 2 fetches at most 2 pages of runners (approximately 200 runners at default page size). If CX53 or CX43 runners exist on page 3 or beyond, they are never considered, causing unnecessary GitHub-hosted fallback. Use --paginate without a numeric argument to fetch all runners.
| reason=no_idle_runner | ||
| fi | ||
| else | ||
| reason=runner_api_failed |
There was a problem hiding this comment.
[P2] Runner fallback condition does not check Rust version label
Line 59: The third jq condition checks index("cx53") or index("cx43") but does NOT check for em-ci-rust-1.95. This means a CX53/CX43 runner with a different Rust version (or no version label) could be selected as a fallback and route to GitHub-hosted with runner_reason=runner_image_unavailable.
| echo "- cx43: \`$CX43_RESULT\`" >> "$GITHUB_STEP_SUMMARY" | ||
| echo "- github: \`$GITHUB_RESULT\`" >> "$GITHUB_STEP_SUMMARY" | ||
| if [ "$ROUTE_RESULT" != "success" ]; then | ||
| exit 1 | ||
| fi | ||
| case "$TARGET" in | ||
| cx53) [ "$CX53_RESULT" = "success" ] ;; | ||
| cx43) [ "$CX43_RESULT" = "success" ] ;; |
There was a problem hiding this comment.
[P3] Result job writes summary before validating case correctness
Lines 365-372 write the step summary before the case validation at lines 376-381. If the case validation fails and exits with code 1, the summary file has already been written with the wrong outcome values. The summary should be written after validation or only written on success.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
…fix #4) The scanner truncates the multi-line AnalysisOptions literal at a fixed width, producing the OLD fingerprint (without perl_facts_path). Restoring the exact fingerprint the scanner reports — matching what it sees, not what the source contains.
…e dispatch, lang-perl CI (C1, #1430) (#1431) * feat(perl): productionize PerlAdapter — flip module gate, impl LanguageAdapter, pipeline dispatch, CI (C1, #1430) C1: the production consumer lane. Makes the Perl adapter a real LanguageAdapter behind #[cfg(feature = "lang-perl")] instead of #[cfg(test)]. Changes: - mod.rs gate: #[cfg(test)] mod perl → #[cfg(feature = "lang-perl")] mod perl + pub(crate) use perl::PerlAdapter. - impl LanguageAdapter for PerlAdapter: accepts_path (.pm/.pl/.t/.psgi), analyze_diff/analyze_repo that read a packet from --perl-facts + produce Findings. When no packet path, returns Err (pipeline records as unavailable per non-abort contract). - AnalysisOptions.perl_facts_path: Option<PathBuf> field added. - Pipeline dispatch: Perl arms now pass options/oracle_policy/changed_files to the real adapter (no more stub). PerlAdapter.analyze_diff/repo reads the packet path from options. - lang-perl CI matrix: cargo check + test under --features lang-perl added to ci.yml. packet_to_findings() is intentionally empty (returns Vec::new()) — C2 (ripr-swarm#1429) fills the full packet→Finding conversion. The adapter compiles, routes, reads packets, and runs the ingestion boundary, but produces zero Findings until C2 lands. Default build (feature off): byte-identical, no Perl code compiled. Campaign 31 (#1379), C1 productionize consumer (ripr-swarm#1430). * fix: add perl_facts_path: None to all AnalysisOptions literals (C1 CI fix) CI caught 23 missing-field errors in test modules — the AnalysisOptions struct gained perl_facts_path: Option<PathBuf> but the test literals didn't get the field. The local check passed because cargo check -p ripr only checks the lib, not lib test. Fixed by inserting perl_facts_path: None, after every resolve_tsconfig_paths: line + removing erroneous insertions in struct definitions and config files. * fix(c1): return Err (not Ok-empty) when packet mapper is unfinished + update no-panic allowlist Adversarial review caught an unsafe design: packet_to_findings() returned Vec::new() (Ok-empty), which the pipeline would record as a successful clean Perl analysis — masking the fact that the mapper isn't implemented. Fix: both analyze_diff and analyze_repo now return Err after parsing + validating the packet. The pipeline non-abort contract records this as 'unavailable' in language_runs, which is the honest state. Also: removed the dead packet_to_findings function (C2 will implement the real mapper). Also: updated .ripr/no-panic-allowlist.toml receiver_fingerprints for panic-0026/0027 to include the new perl_facts_path: None field (the AnalysisOptions literal changed shape, making the old selectors stale). * fix: update no-panic-allowlist last_seen lines to match new positions (C1 CI fix) The perl_facts_path: None sed insertion shifted AnalysisOptions literal line numbers in analysis/mod.rs. The allowlist last_seen entries for panic-0026 (line 254→327) and panic-0027 (line 271→345) were stale, causing check-no-panic-family to report unallowed findings. * fix: remove stale receiver_fingerprint from no-panic allowlist (C1 CI fix) The receiver_fingerprint field was a multi-line AnalysisOptions literal that doesn't match the scanner's truncated single-line form after the perl_facts_path field was added. Removing receiver_fingerprint lets the scanner fall back to container+callee+position matching, which is stable across struct-literal changes. * fix: restore exact receiver_fingerprint matching scanner output (C1 CI fix #4) The scanner truncates the multi-line AnalysisOptions literal at a fixed width, producing the OLD fingerprint (without perl_facts_path). Restoring the exact fingerprint the scanner reports — matching what it sees, not what the source contains. * fix: update policy/no-panic-allowlist.toml (the CORRECT file) for perl_facts_path Root cause of 6+ failed CI cycles: the scanner reads policy/no-panic-allowlist.toml (line 6801), NOT .ripr/no-panic-allowlist.toml. I was editing the wrong file. The correct file had stale receiver_fingerprints (without perl_facts_path: None) and stale last_seen line numbers (254/271 instead of 327/345). Fixed both panic-0026 and panic-0027 entries in policy/no-panic-allowlist.toml: - receiver_fingerprint: added 'perl_facts_path: None,' - last_seen line: 254→327, 271→345 check-no-panic-family: GREEN (0 violations).
…#7684) * eval(verdict-corpus): 20 TypeScript cases for uncovered spec examples Adds runtime-labeled TypeScript cases for spec examples the ledger left uncovered: every RIPR-SPEC-0243 example is now covered (30, 33 #7099, 34, 35), plus RIPR-SPEC-0247 #4/#7, 0248 #2-6, 0249 #2/#4, 0250 #2/#3 and 0252 #2-6. Coverage 46/97 -> 66/97, floor 66. Truth comes from running each subject's own test command on the unedited package and on each edit/mutant in a scratch copy; new tests sit in new src/test file pairs so no existing case's truth or row moved. ripr: 15 ideal, 5 false actionable. All five are the specs' own conservative grades (0243 #30's non-literal mock, 0247 #4 spread mock, 0247 #7 legacy equal, 0252 #3 variable expected, 0252 #6 bracket t["assert"]), each with discriminated runtime truth. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UkJX24i4awmd7UoVV5CXkP * changelog: name the TS spec-coverage fragment for #7684 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UkJX24i4awmd7UoVV5CXkP * changelog: cite #7684 in the TS spec-coverage fragment Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UkJX24i4awmd7UoVV5CXkP * docs(verdict-corpus): note pre-change pins for SPEC-0243 examples 30, 34, 35 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UkJX24i4awmd7UoVV5CXkP * docs(verdict-corpus): state the one-alternative coverage convention Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UkJX24i4awmd7UoVV5CXkP * fix(verdict-corpus): t.assert.equal is loose, not strict, in the bracket case note Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UkJX24i4awmd7UoVV5CXkP * eval(verdict-corpus): raise the TS floor to 67 after merging RIPR-SPEC-0256 Main's #7656 put RIPR-SPEC-0256 in the TypeScript ledger (floor 47); with this PR's twenty cases coverage is 67/103. Re-bless moved no rows. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UkJX24i4awmd7UoVV5CXkP --------- Co-authored-by: Claude <noreply@anthropic.com>
…ples Adds runtime-labeled TypeScript cases for every acceptance example the ledger left uncovered: RIPR-SPEC-0246 #3-5/#7/#9/#10, 0247 #3/#5, 0248 #7-10, 0249 #3/#5-9, 0250 #4-6, 0251 #2-7, 0254 #2-5 and 0256 #2-6. Coverage 67/103 -> 103/103, floor 103 (ledger and the pinned xtask assertion). Truth comes from running each subject's own test command on the unedited package, on the edit, and on each listed mutant in a scratch copy; new tests sit in new src/test file pairs, so re-bless added 37 rows and moved none. ripr: 25 ideal, 2 abstained, 8 false actionable, 2 false exposed. Every false verdict is the grade the cited example states: 0248 #10 (substring toThrow on an error seam) and 0246 #3 (field dropped under toEqual of an input that already holds it) are spec-accepted false exposed; the false actionable rows are the refused shapes whose tests still discriminate. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UkJX24i4awmd7UoVV5CXkP
…age (#7731) * eval(verdict-corpus): 37 TypeScript cases for the remaining spec examples Adds runtime-labeled TypeScript cases for every acceptance example the ledger left uncovered: RIPR-SPEC-0246 #3-5/#7/#9/#10, 0247 #3/#5, 0248 #7-10, 0249 #3/#5-9, 0250 #4-6, 0251 #2-7, 0254 #2-5 and 0256 #2-6. Coverage 67/103 -> 103/103, floor 103 (ledger and the pinned xtask assertion). Truth comes from running each subject's own test command on the unedited package, on the edit, and on each listed mutant in a scratch copy; new tests sit in new src/test file pairs, so re-bless added 37 rows and moved none. ripr: 25 ideal, 2 abstained, 8 false actionable, 2 false exposed. Every false verdict is the grade the cited example states: 0248 #10 (substring toThrow on an error seam) and 0246 #3 (field dropped under toEqual of an input that already holds it) are spec-accepted false exposed; the false actionable rows are the refused shapes whose tests still discriminate. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UkJX24i4awmd7UoVV5CXkP * changelog: name the TS batch-3 fragment for #7731 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UkJX24i4awmd7UoVV5CXkP * fix(verdict-corpus): name no test for the 0246 #9 process-exit kill; clarify cart vitest history Devin on #7731: the async-forEach case named `tickPrice` as failing although jest reports no failed test; the command fails through an unhandled rejection. failing_test now says so, and #7734 tracks representing process-level kills in the schema. SPEC.md separates the cart subject's older vitest 3.2.7 labels from the 4.1.11 runs of the new lookup-table cases. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UkJX24i4awmd7UoVV5CXkP --------- Co-authored-by: Claude <noreply@anthropic.com>
Independent review on 9822d27 showed two wrap-join over-joins vs main: an unspaced items.length<3 kept angle depth open, and a forEach(() => { line kept grouping while parens were open, so a nested deleted header was swallowed into the live enclosing owner. Stop continuing after a line that ends in => {, and do not treat <digit as a type-list opener. Shapes #1/#4/#8 and the existing callback-body control still pass. Unspaced value<cap remains the later lexer slice. Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
…own data Repair starts and agent packets for a changed predicate boundary now draft `assert_eq!(discounted_total(100, 100), 90)` instead of the placeholder template: the related tests' own call rows pin the equality-boundary input and the owner's branch value folds there under bounded integer arithmetic. Where the fold is not derivable the expected side keeps `/* expected */` while the concrete input side still emits. The draft carries the typed `drafted_static_fold` basis and the standing honesty note verbatim. Agent-efficiency study (Nov 2-4) tweak #4; round-11 #12414 names the boundary-recommendation surface. Cache generations 1.162 / 0.164.
…own data Repair starts and agent packets for a changed predicate boundary now draft `assert_eq!(discounted_total(100, 100), 90)` instead of the placeholder template: the related tests' own call rows pin the equality-boundary input and the owner's branch value folds there under bounded integer arithmetic. Where the fold is not derivable the expected side keeps `/* expected */` while the concrete input side still emits. The draft carries the typed `drafted_static_fold` basis and the standing honesty note verbatim. Agent-efficiency study (Nov 2-4) tweak #4; round-11 #12414 names the boundary-recommendation surface. Cache generations 1.162 / 0.164.
…own data (#13461) Repair starts and agent packets for a changed predicate boundary now draft `assert_eq!(discounted_total(100, 100), 90)` instead of the placeholder template: the related tests' own call rows pin the equality-boundary input and the owner's branch value folds there under bounded integer arithmetic. Where the fold is not derivable the expected side keeps `/* expected */` while the concrete input side still emits. The draft carries the typed `drafted_static_fold` basis and the standing honesty note verbatim. Agent-efficiency study (Nov 2-4) tweak #4; round-11 #12414 names the boundary-recommendation surface. Cache generations 1.162 / 0.164.
Summary
Non-goals
Validation
Note: the first check-pr attempt hit a transient Windows cargo-test process exit after visible tests passed; direct cargo test --workspace then passed and check-pr passed on rerun.